package com.xx.springsecuritydemo.main.service.impl;

import com.xx.springsecuritydemo.main.entity.User;
import com.xx.springsecuritydemo.main.mapper.UserMapper;
import com.xx.springsecuritydemo.main.service.IUserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class UserServiceImpl implements IUserService {

    @Autowired
    private UserMapper userMapper;

    @Override
    public User loadUserByUsername(String username) {
        return userMapper.loadUserByUsername(username);
    }
}
